import path from 'path';

/**
 * 图片文件
 *
 * @author chitanda
 * @date 2022-05-19 12:05:56
 * @export
 * @class PictureFile
 */
export class PictureFile {
  path: string;

  name: string;

  folder: string;

  extname: string;

  constructor(filePath: string) {
    this.path = filePath;
    this.name = path.basename(filePath);
    this.folder = path.dirname(filePath);
    this.extname = path.extname(filePath);
  }
}
